package com.hbx.platform.base.service;

import com.hbx.platform.base.query.BaseQuery;
import com.hbx.platform.base.utils.PageList;

import java.util.List;

public interface IBaseService<T> {

    List<T> getAll();

    T queryById(Long id);

    void update(T t);

    void save(T t);

    void delete(Long id);

    PageList<T> page(BaseQuery query);

    //批量删除
    Integer batchDelete(List<Long> ids);
}
